import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/Login.vue'

Vue.use(VueRouter)

const routes = [

  {
    path: '/',
    name: 'home',
    component: () => import('../views/home.vue')
  },
  {
    path: 'Login',
    name: 'Login',
    component: HomeView
  },
  {
    path: '/idLogin',
    name: 'idLogin',
    component: () => import('../views/idLogin.vue')
  },
  {
    path: 'studentInfo',
    name: 'studentInfo',
    component: () => import('../views/studentInfo.vue')
  },
  {
    path: '/textPage',
    name: 'textPage',
    component: () => import('../views/textPage/textPage.vue')
  },
  {
    path: '/score',
    name: 'score',
    component: () => import('../views/score.vue')
  },
  {
    path: '/textModel',
    name: 'textModel',
    component: () => import('../views/textModel/textModel.vue')
  },
  {
    path: '/shiCaoCeShi',
    name: 'shiCaoCeShi',
    component: () => import('../views/shiCaoCeShi/shiCaoCeShi.vue')
  },
  {
    path: '/shiCaoMoNi',
    name: 'shiCaoMoNi',
    component: () => import('../views/shiCaoMoNi/shiCaoMoNi.vue')
  },
  {
    path: '/errorquestion',
    name: 'errorquestion',
    component: () => import('../views/shiCaoMoNi/errorquestion.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
